<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
	xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout"
	layout:decorator="layout">
<!-- layout文件路径-->
<head>
<meta charset="utf-8" />
<title>Blog后台管理中心</title>
<!-- 自定义表单样式 -->
<link rel="stylesheet" href="../../static/css/form.min.css"
	th:href="@{/css/form.min.css}" />
<style>
.col-center-block {
	float: none;
	display: block;
	margin-left: auto;
	margin-right: auto;
}
</style>
</head>

<body>
	<div layout:fragment="content"
		style="width: 90%; margin-left: auto; margin-right: auto; float: right;">
		<!-- 页面正文开始 -->
		<div class="form_main">
			<form class="form-horizontal" role="form" th:action="@{/admin/savearticletype}"
				method="post" th:object="${articleType}">
				<fieldset>
					<legend>新增文章类型</legend>					
					<div class="form-group">
						<label class="col-sm-2 control-label" for="ds_username">类型名称</label>
						<div class="col-sm-4">
							<input class="form-control" th:field="*{typeName}"
								id="ds_username" type="text" placeholder="日记" />
						</div>
					</div>					
					<div class="form-group">
						<div class="col-sm-6">
							<div class="col-sm-3 col-center-block">
								<button class="btn btn-lg btn-primary btn-block" type="submit">保存</button>
							</div>
						</div>
					</div>
				</fieldset>
				<!--<fieldset>
					<legend>选择相关表</legend>
					<div class="form-group">
						<label for="disabledSelect" class="col-sm-2 control-label">表名</label>
						<div class="col-sm-10">
							<select id="disabledSelect" class="form-control">
								<option>禁止选择</option>
								<option>禁止选择</option>
							</select>
						</div>
					</div>
				</fieldset>

				<fieldset>
					<legend>字段名</legend>
					<div class="form-group">
						<label for="disabledSelect" class="col-sm-2 control-label">表名</label>
						<div class="col-sm-10">
							<select id="disabledSelect" class="form-control">
								<option>禁止选择</option>
								<option>禁止选择</option>
							</select>
						</div>
					</div>
				</fieldset> -->
			</form>
		</div>
		<!-- 页面正文结束 -->
	</div>
	<!-- 编辑表格 -->
</body>
</html>